settings = {
    number = {title = "震动强度", t = "int", default = 123, range = {1, 10}},
    text = {title = "文本测试", t = "string", default = "你好"},
    bool = {title = "布尔变量", summary = "我是说明", t = "checkbox", default = false},
    choice = {title = "单选", summary = "选择类型", t = "single_choice", items = {"一", "二"}}
}

config = registerSettings("lua_sample", settings, 2)

print(config.getInt("number"))
config.set("number", 11.1) -- 强制转换int
print(config.getInt("number"))
s = config.getString("text")
speak(s)
print(s)
print(config.getBoolean("bool"))
